package com.gragra.benchmark.tests;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.StringWriter;
import org.junit.Before;
import org.junit.Test;
import com.gragra.benchmark.CreateCorpusAndGoldAssigner;
import com.gragra.benchmark.MakeBenchmark;
/**
 * 
 * @author Christoph Teichmann
 * 21.09.2013
 */
public class TestMakeBenchmark
{
	/**
	 * 
	 */
	private MakeBenchmark	mb;
	@Before
	public void setUp() throws Exception
	{mb = new MakeBenchmark("0|0 1|1 2|2 3|3 4|4", "1 2 3 4 5", "2 0 5 1 2", makeCreators(5),2000,5, 1.0, 10.0,3,100,1);}
	/**
	 * 
	 * @param threads
	 * @return
	 */
	protected CreateCorpusAndGoldAssigner[] makeCreators(int threads)
	{
		/*return new CreateCorpusAndGoldAssigner[] {new CreateNonProjDepdCorpusAndAssigner(new CreateNonProjGibbsSingleHeadCorpus(new HeadFrequenciesFactory())),
											new CreateNonProjDepdCorpusAndAssigner(new CreateMHSingleHeadCorpus(new HeadFrequenciesFactory())),
											new CreateNonProjDepdCorpusAndAssigner(new CreateGibbsSingleHeadRandom(new HeadFrequenciesFactory())),
											new CreateNonProjDepdCorpusAndAssigner(new CreateSingleHeadRandomCorpus(new HeadFrequenciesFactory())),
											new CreateNonProjDepdCorpusAndAssigner(new CreateAuxiliaryChoice(new HeadFrequenciesFactory()))};*/
		//TODO
		return null;
	}
	@Test
	public void testWriteOutResults() throws IOException
	{
		StringWriter sw = new StringWriter();
		BufferedWriter bw = new BufferedWriter(sw);
		mb.writeOutResults(bw);
		bw.close();
		System.out.println(sw.toString());
	}
}